package com.itheima.dto.user;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * <h1>手机号码登录基础dto</h1>
 *
 * @author <a href="515857087@qq.com">叶世铭</a>
 * @since 2023/1/19
 */
@Data
public class PhoneLoginBaseParam implements Serializable {
    private static final long serialVersionUID = -7187895488648979650L;

    /**
     * 用户电话号码
     */
    @NotBlank(message = "用户电话号码不能为空")
    @ApiModelProperty(value = "用户电话号码")
    private String phone;

    /**
     * 图片验证码
     */
    @NotBlank(message = "图片验证码不能为空")
    @ApiModelProperty(value = "图片验证码")
    private String imageCode;
}
